<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<jsp:include page="includes/header.jsp" />

<c:if test="${changePasswordSuccess}">
<div class="ui-widget">
		<div class="ui-state-error ui-corner-all" style="padding: 0 .7em;"> 
			<p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span> 
			<strong>Your password was changed successfully!!!</strong></p>
		</div>
	</div>
	<br>
	<br>
</c:if>
<a href="displayChangePassword.action">Change Password</a>  <a href="displayTeamSubmission.action">Submit Team</a>

<c:if test="${coach.admin == true}">
	<a href="goAdmin.action">Admin Page</a>
</c:if>


<table align="center" width="50%">
	<tr>
		<td colspan="2">Welcome <b><c:out value="${coach.name}" /></b> from team <b><c:out value="${teamDetails.team.teamName}" /></b>!<br></td>
	</tr>
	<c:forEach items="${teamDetails.players}" var="player">
	<tr>
	<td><c:out value="${player.player.description}" />[<c:out value="${player.player.positions}" />]</td>
	<c:if test="${player.rookieStatus ne null}">
	<td><c:out value="${player.rookieStatus.label}" /></td>
	</c:if>
	<c:if test="${player.rookieStatus eq null}">
	<td></td>
	</c:if>
	</tr>
	</c:forEach>
</table>


